package com.small.admin.service.impl;

import com.small.admin.entity.RoleAdmin;
import com.small.admin.mapper.RoleAdminMapper;
import com.small.admin.service.RoleAdminService;
import com.small.common.base.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 作者: fenny
 * 邮箱: 893146555@qq.com
 * 时间: 2017/10/17 16:30
 * 描述:
 */
@Service
public class RoleAdminServiceImpl extends BaseServiceImpl<RoleAdminMapper, RoleAdmin> implements RoleAdminService {

    @Resource
    private RoleAdminMapper roleAdminMapper;

    @Override
    public List<Long> selectByAdminId(Long id) {
        return roleAdminMapper.selectByAdminId(id);
    }

    @Override
    public List<Long> selectAdminIdByRoleId(long roleId) {
        return mapper.selectAdminIdByRoleId(roleId);
    }

    @Override
    public List<Long> selectAdminIdByCidRoleId(Long courtId, Integer... roleIds) {
        return mapper.selectAdminIdByCidRoleId(courtId,roleIds);
    }
}
